package cn.anquing.pattern.chainofResponsibilityPattern.type2;

public class Son extends ChainHandler {


    //儿子只处理母亲的请求
    public Son(){
        super(3);
    }
    //儿子的答复
    @Override
    public void response(IWomen women) {
        System.out.println("--------母亲向儿子请示-------");
        System.out.println(women.getRequest());
        System.out.println("儿子的答复是：同意\n");
    }
}
